package com.example.vp.service.impl;

import com.example.vp.mapper.AttentionMapper;
import com.example.vp.service.AttentionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AttentionServiceImpl implements AttentionService {
    @Autowired
    private AttentionMapper attentionMapper;
    @Override
    public void attentionUser(long userId, Long id) {
        attentionMapper.attentionUser(userId,id);
    }

    @Override
    public Long getfansNumByUserId(Long userId) {
        return attentionMapper.getfansNumByUserId(userId);
    }

    @Override
    public Long getattentionNum(Long userId) {
        return attentionMapper.getattentionNum(userId);
    }

    @Override
    public List<Long> getAttentionByUserId(Long userId) {
        return attentionMapper.getAttentionByUserId(userId);
    }
}
